package org.ala.tiktools.rpc.msg.push;

import org.ala.tiktools.rpc.msg.RpcMsg;
import org.ala.tiktools.rpc.msg.RpcMsgHead;
import org.ala.tiktools.rpc.msg.RpcMsgHeadTypeEnums;

import java.io.Serializable;

/**
 * @author ala
 * @date 2025-04-04 17:41
 */
public class RpcPushMsg extends RpcMsg<RpcPushMsg> implements Serializable {
    public final static long serialVersionUID = 1;


    /**
     *  消息体
     */
    protected RpcPushBody body;


    public static RpcPushMsg build() {return new RpcPushMsg().head(RpcMsgHead.build().type(RpcMsgHeadTypeEnums.PUSH));}


    public RpcPushBody getBody() {
        return body;
    }

    public void setBody(RpcPushBody body) {
        this.body = body;
    }

    public RpcPushMsg body(RpcPushBody body) {
        setBody(body);
        return this;
    }
}
